<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@include file="tld.jsp"%>
<!DOCTYPE html>
<html>
<head>
        <title>D.H后台管理系统</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> 
        <meta name="renderer" content="webkit|ie-comp|ie-stand">
		<meta name="renderer" content="webkit">
		<style>
			div.selector{
				overflow: inherit !important;
			}
			#sabe{
				FILTER: alpha(opacity=80) !important;
				-moz-opacity: 0.8;
				opacity: 1 !important;
				margin-top: -30px; 
			}
			#sabe option{
				-webkit-border-radius:3px 3px 3px 3px ;
			}
			select.text{position:absolute;border: none;background:#252525;width:73px;height:21px;line-height:27px;padding:0 5px;
			color:#CCC;-moz-text-shadow:0 1px 0px #000;-webkit-text-shadow:0 1px 0px #000; -webkit-border-radius: 5px;
			-o-text-shadow:0 1px 0px #000;}
		</style>
        <!-- jQuery AND jQueryUI -->
        <script type="text/javascript" src="${pageContext.request.contextPath}/views/js/libs/jquery-1.8.2.min.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/views/js/libs/jquery-ui-1.8.13.min.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/views/js/libs/jquery.ui.widget.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/views/js/libs/jquery.fileupload.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/views/js/libs/jquery.cookie.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/views/js/common/header.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/views/js/pagebar/kkpager.min.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/views/js/libs/myfunc.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/views/js/md5.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/views/js/My97DatePicker/WdatePicker.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/views/js/common/common.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/views/js/libs/jquery.tabso_yeso.js"></script>
        <link rel="stylesheet" href="${pageContext.request.contextPath}/views/css/libs/min.css" />
        <script type="text/javascript" src="${pageContext.request.contextPath}/views/js/libs/min.js"></script>
                
        <link rel="stylesheet" href="${pageContext.request.contextPath}/views/css/libs/myalert.css"/>
        <link rel="stylesheet" href="${pageContext.request.contextPath}/views/css/pagebar/kkpager_blue.css"/>
		<script type="text/javascript" src="${pageContext.request.contextPath}/views/js/libs/myalert.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/views/js/utils.js"></script>
		
		<!-- globle vars -->
		<script language="javascript" type="text/javascript">
			var domain='${pageContext.request.contextPath}';
		</script>
    </head>

    <body>
        
        <script type="text/javascript" src="${pageContext.request.contextPath}/views/js/libs/main.js"></script>
		<link rel="stylesheet" href="${pageContext.request.contextPath}/views/css/style.css" />

        <!--              
                HEAD
                        --> 
        <div id="head">
            <div class="left">
                <a href="#" class="button profile"><img src="${pageContext.request.contextPath}/views/images/icons/top/huser.png" alt="" /></a>
                Hi, 
                <a href="#">${adminusername}</a>&nbsp;&nbsp;&nbsp;&nbsp;
            </div>
           
            <div class="right">
 	            <a href="${pageContext.request.contextPath}/admin/index" >[首页]</a>&nbsp;&nbsp;
                <a href="javascript:void(0);" onclick="logout();">Logout</a>
            </div>
        </div>
                
                
        <!--            
                SIDEBAR
                         --> 
        <div id="sidebar" style="overflow-y:auto;">
            <ul>
                ${left_menu}
            </ul>
			<div id="sidebarzoom" style="width:16px;height:100%;background:#505050; margin-left:240px;position:fixed;top:42px;" onclick="javascript:zoom_left();">
				<img style="position:relative; top:50%;" src="${pageContext.request.contextPath}/views/images/arrow_left.png"/>
			</div>
			
        </div>
                
                
                
                
        <!--            
              CONTENT 
                        --> 
        <div id="content" class="white">
        <script type="text/javascript">
        $(function(){
        	if( $("#des").find('span') != null 
        			&&  $("#des").find('span').length > 1){
        		$("#des").find('div').attr('class','');
        		$("#des").find('span')[0].innerHTML= '';
        		$("#des").find('span')[1].innerHTML= '';
        	}
        	var len = ('${username}').length;
        	var ll = 185;
        	if( len > 5){
        		ll = ll+len+5;
        	}
        	var left= ll+"px";
        	$('#sabe').css({'marginLeft':left});
        })
        
        function changeSub(){
        	var subVal = $('#sabe').val();
        	var subText = $("#sabe").find("option:selected").text();
        	var subValArr = subVal.split('-');
            var form1 = document.createElement("form");  
            form1.id = "form1";  
            form1.name = "form1";  
            document.body.appendChild(form1);  
            var input = document.createElement("input");  
            input.type = "text";  
            input.name = "hSId";  
            input.value = subValArr[0];   
            form1.appendChild(input);  
            var input = document.createElement("input");  
            input.type = "text";  
            input.name = "hSName";  
            input.value = subText;   
            form1.appendChild(input);  
            var input = document.createElement("input");  
            input.type = "text";  
            input.name = "hSSpell";  
            input.value = subValArr[1];   
            form1.appendChild(input);  
            form1.method = "POST";  
            form1.action = "${pageContext.request.contextPath}/index/indexData";  
            form1.submit();  
            document.body.removeChild(form1);  
        	
        }
        </script>
            <!-- <h1><img src="/snatch/views/images/icons/posts.png" alt="" /> Table</h1> -->
            
